package com.xiaozhou.function.func;

import com.xiaozhou.function.IFunction;
import org.springframework.stereotype.Component;

/**
 * @author shhzhou
 * @description: 获取房价
 * @date 2024/10/31 11:37
 */
@Component
public class GetHousePrice implements IFunction {
    @Override
    public String execute(Object args) {
        if (args.equals("越秀区")) {
            return args + "的房价是300000一平方";
        }
        if (args.equals("天河区")) {
            return args + "的房价是400000一平方";
        }
        if (args.equals("海珠区")) {
            return args + "的房价是500000一平方";
        }
        return "当前地区暂未开启服务，敬请期待。";


    }


}
